//
//  UIButton+Extension.swift
//  mxfweibo
//
//  Created by apple1 on 15/12/21.
//  Copyright © 2015年 莫祥富. All rights reserved.
//

import UIKit

extension UIButton {
    
    
    convenience init(imageName:String ,fontSize: CGFloat ,title: String) {
        self.init()
        
        setImage(UIImage(named: imageName), forState: UIControlState.Normal)
        
        setTitleColor(UIColor.lightGrayColor(), forState: UIControlState.Normal)
        
        titleLabel?.font = UIFont.systemFontOfSize(fontSize)
        
        setTitle(title, forState: UIControlState.Normal)
    }
}







